Document --nocapture to reduce confusion running tests.
authorRalph Giles <giles@mozilla.com>
Fri, 15 Jan 2016 16:59:55 +0000 (08:59 -0800)
committerRalph Giles <giles@mozilla.com>
Fri, 15 Jan 2016 16:59:55 +0000 (08:59 -0800)
Although this is a feature of rustc's test harness and
not cargo's test driver, I can never remember how to
invoke it. Describing the switch in `cargo test --help`
makes it more discoverable.

src/bin/test.rs

index 789dc002b996797f351164a27ad20ede1157f0fc..b919b52a563cbca1b972f3f353dcbf53d9797b2e 100644 (file)
@@ -65,6 +65,12 @@ The --jobs argument affects the building of the test executable but does
 not affect how many jobs are used when running the tests.
 
 Compilation can be configured via the `test` profile in the manifest.
+
+By default the rust test harness hides output from test execution to
+keep results readable. Test output can be recovered (e.g. for debugging)
+by passing `--nocapture` to the test binaries:
+
+  cargo test -- --nocapture
 ";
 
 pub fn execute(options: Options, config: &Config) -> CliResult<Option<()>> {